package hh;

import hh.util.uuid.DistributeId64Bit;
import lombok.Data;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Data
@RestController
@RequestMapping("/snowflake")
public class Controller {
    DistributeId64Bit dis = new DistributeId64Bit();
    @RequestMapping("/long")
    public Object longid() {
        long timeMillis = System.currentTimeMillis();
        Object l = dis.getId();
        l = l + " time:" + (System.currentTimeMillis() - timeMillis);
        return l;
    }

    String name;
}
